import { relations } from "drizzle-orm";
import { reports } from "./reports";
import { tests } from "./tests";

export const report2testsRelations = relations(reports, ({ many }) => ({
  tests: many(tests),
}));

export const tests2reportRelations = relations(tests, ({ one }) => ({
  report: one(reports, {
    fields: [tests.reportId],
    references: [reports.id],
  }),
}));
